<template>
  <div class="js_dialog" id="iosDialog2" style="opacity: 1;" v-if="show">
    <div class="weui-mask"></div>
    <div class="weui-dialog">
        <div class="weui-dialog__bd">您访问店铺已休息，请选择 其他门店逛逛吧~</div>
        <div class="weui-dialog__ft">
            <button class="weui-dialog__btn weui-dialog__btn_primary" type="primary" @click="checkoutStore">切换门店</button>
        </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    show: {
      type: Boolean,
      default: false
    }
  },
  methods: {
     /**
     * @description 跳转切换门店
     */
    checkoutStore() {
      wx.reLaunch({
        url: '/pages/store/select/main'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.weui-mask {
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}
.weui-dialog {
    position: fixed;
    z-index: 9999;
    top: 50%;
    left: 80rpx;
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
    background-color: #FFFFFF;
    text-align: center;
    border-radius: 3px;
    overflow: hidden;
    padding: 70rpx 0rpx;
    width: 590rpx;
    display: flex;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
    border-radius: 10rpx;
    &__bd{
      font-size: 30rpx;
      width: 348rpx;
      color: #3F3F3F;
      line-height: 45rpx;
    }
    &__btn{
      width: 306rpx;
      height: 70rpx;
      line-height: 70rpx;
      border-radius: 10rpx;
      font-size: 32rpx;
      font-weight: bold;
      margin-top: 22rpx;
    }
}

</style>
